package cn.stylefeng.guns.modular.business.frequency.orderfinishrecord.entity;

import cn.stylefeng.guns.core.pojo.base.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.util.Date;

import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单交付记录表
 *
 * @author yujie
 * @date 2023/05/09 17:16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tt_order_finish_record")
public class OrderFinishRecord extends BaseEntity {

    /**
     * id
     */
    @TableId("id")
    private Long id;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 交付人
     */
    @TableField("consignee_name")
    private String consigneeName;

    /**
     * 交付人电话
     */
    @TableField("consignee_phone")
    private String consigneePhone;

    /**
     * 交付人身份证号码
     */
    @TableField("consignee_card_number")
    private String consigneeCardNumber;

    /**
     * 交付人
     */
    @TableField("collection_name")
    private String collectionName;

    /**
     * 交付人电话
     */
    @TableField("collection_phone")
    private String collectionPhone;

    /**
     * 交付收款方式 1.线上收钱吧 2.银行转账 3.现金
     */
    @TableField("type")
    private Integer type;

    /**
     * client_sn
     */
    @TableField("client_sn")
    private String clientSn;

    /**
     * 现金支付金额
     */
    @TableField("cash_fee")
    private BigDecimal cashFee;

    /**
     * 交付单PDF地址
     */
    @TableField("contract_path")
    private String contractPath;

    /**
     * 是否直交客户交付 1.是 0.否
     */
    @TableField("logistics_finish")
    private Integer logisticsFinish;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id",fill = FieldFill.INSERT)
    private Long tenantId;
}
